package cn.jsl.shop.service;


import cn.jsl.basic.service.IBaseService;
import cn.jsl.basic.dto.ShopDto;
import cn.jsl.shop.domain.Shop;
import cn.jsl.shop.domain.ShopAuditLog;

import javax.mail.MessagingException;
import java.util.List;

public interface IShopService extends IBaseService<Shop> {
    /**
     * 店铺入驻
     */
    void settlement(Shop shop);

    /**
     * 店铺审核通过
     * @param log
     */
    void pass(ShopAuditLog log) throws MessagingException;

    /**
     * 店铺审核驳回
     * @param log
     */
    void reject(ShopAuditLog log) throws MessagingException;

    /**
     * 获取每一个店铺状态的数量
     * @return
     */
    List<ShopDto> getShopState();

    /**
     * 邮箱激活功能
     * @param id
     * @param
     */
    void active(Long id);
}
